i=1
j=1
while i<=9:
	print(" "*(30-i*3),end=" ")
	while j<=i:
		print("{:1}*{:1}={:<2}".format(j,i,i*j),end=" ")
		j=j+1
	print("")
	j=1
	i=i+1
